package com.my.chapter8;

public class practice6 {
    public static void main(String[] args) {
        Instrument1 i = new Instrument1();
        Instrument1 w = new Wind1();
        System.out.println(i);
        System.out.println(w);
    }
}

class Instrument1{
    @Override
    public String toString() {
        return "Instrument";
    }
}

class Wind1 extends Instrument1{
    @Override
    public String toString() {
        return "Wind";
    }
}
